Integral of composite function